import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index/index.vue'
import PageList from '@/pages/list/index.vue'
import addPage from '@/pages/addPage/index.vue'
import addModule from '@/pages/addModule/index.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'PageList',
      component: PageList
    },
    {
      path: '/canvas',
      name: 'canvas',
      component: Index
    },
    {
      path: '/addPage',
      name: 'addPage',
      component: addPage
    },
    {
      path: '/addModule',
      name: 'addModule',
      component: addModule
    }
  ]
})
